package org.example.springioc.model;

import lombok.Data;


@Data
public class UserInfo {
    private Integer id;
    private String name;
    private Integer age;
    public UserInfo(){
    }

    public UserInfo(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
